package com.study.o2o.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.study.o2o.entity.ProductSellDaily;

public interface ProductSellDailyDao {
	/**
	 * 根据查询条件返回商品日销售的统计列表
	 * 
	 * @param productSellDailyCondition
	 * @param beginTime
	 * @param endTime
	 * @return
	 */
	List<ProductSellDaily> queryProductSellDailyList(
			@Param("productSellDailyCondition")ProductSellDaily productSellDailyCondition,
			@Param("beginTime") Date beginTime,@Param("endTime")Date endTime);
	/**
	 * 统计平台所有商品的日销售量
	 * 
	 * @return
	 */
	int insertProductSellDaily();
	/**
	 * 统计平台当天没销量的商品,补全信息,将它们的销量置为0
	 * 
	 * @return
	 */
	int insertDefaultProductSellDaily();
}
